Xbasic

OBJECT.SIZE_GET Function

Syntax

Dimensions as C = <OBJECT>.Size_Get()

Description

Returns the size of the window in inches.

The <OBJECT>.SIZE_GET() method applies to:

Alpha Anywhere (for <OBJECT> use the keyword "A5")
Control Panel (for <OBJECT> use the keyword "CONTROLPANEL")
Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)
Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)
Status Bar (for <OBJECT> use the keyword "STATUSBAR")

The <OBJECT>.SIZE_GET() method returns the size of the window in inches (width x height). Gets window size ("Mimimized","Maximized" or "<width>x<<height>").

Example

The following example returns the size of the form in inches (width x height).

dim ptr as P
ptr = form.load("Customer Information")
? ptr.Size_Get()
=  "5.812500x6.031250"

Limitations

Desktop applications only.

See Also